﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RepairChecker.Master" AutoEventWireup="true" CodeBehind="jobdone.aspx.cs" Inherits="RepairChecker.jobdone" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ObjectDataSource ID="sourceJob" runat="server" 
        SelectMethod="GetJobs" TypeName="RepairChecker.Entity">
        <SelectParameters>
            <asp:Parameter Name="crewId" Type="Int32" DefaultValue="0" />
            <asp:Parameter Name="districtId" Type="Int32" DefaultValue="0" />
            <asp:Parameter DefaultValue="2" Name="showMode" Type="Int32" />
            <asp:Parameter DefaultValue="0" Name="jobTypeId" Type="Int32" />
            <asp:Parameter DefaultValue="" Name="faultIdString" Type="String" />
            <asp:Parameter DefaultValue="0" Name ="dateType" Type="Int32"/>
            <asp:Parameter DefaultValue="1970-1-1" Name="dateStart" Type="DateTime" />
            <asp:Parameter DefaultValue="1970-1-1" Name="dateEnd" Type="DateTime" />
            
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:GridView ID="dataJob" runat="server" AutoGenerateColumns="False" 
        AutoGenerateSelectButton="True" DataSourceID="sourceJob" 
        DataKeyNames="DistrictName,OfficeName,FormId,ArriveDate,OfficeId,FaultIdString" 
        onselectedindexchanged="dataJob_SelectedIndexChanged" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        ForeColor="Black" GridLines="Horizontal" 
        onrowdatabound="dataJob_RowDataBound">
        <Columns>
            <asp:BoundField DataField="DistrictName" HeaderText="区县" 
                SortExpression="DistrictName" />
            <asp:BoundField DataField="OfficeName" HeaderText="网点" 
                SortExpression="OfficeName" />
            <asp:BoundField DataField="JobType" HeaderText="报修类型" 
                SortExpression="JobType" />
            <asp:TemplateField HeaderText="故障名称">
                <ItemTemplate>
                    <asp:BulletedList ID="lstFaults" runat="server">
                    </asp:BulletedList>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CallInDate" HeaderText="接报时间" 
                SortExpression="CallInDate" />
            <asp:BoundField DataField="NotifyDate" HeaderText="通知时间" 
                SortExpression="NotifyDate" />
            <asp:BoundField DataField="CrewName" HeaderText="维护人员" 
                SortExpression="CrewName" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#242121" />
    </asp:GridView>
    <hr/>
    <asp:Panel ID="panelEditor" runat="server" Enabled="False">
    <asp:Label ID="lblOfficeInfo" runat="server" Text="Label"></asp:Label>
    <br />
    <asp:Label ID="lblFaultInfo" runat="server" Text="Label"></asp:Label>
    <br />
    到达时间：<asp:DropDownList ID="lstArriveHour" runat="server">
    </asp:DropDownList>:
    <asp:DropDownList ID="lstArriveMinute" runat="server">
    </asp:DropDownList>
        <br />
        <asp:Button ID="btnArrive" runat="server" onclick="btnArrive_Click" 
            Text="设置到达时间" />
    <br />
    完成时间：<asp:DropDownList ID="lstFinishHour" runat="server" >
    </asp:DropDownList>:
    <asp:DropDownList ID="lstFinishMinute" runat="server">
    </asp:DropDownList>
        <br />
        故障：<asp:CheckBoxList ID="clstFault" runat="server">
        </asp:CheckBoxList>
    <br />
        单号：<asp:TextBox ID="txtFormNo" runat="server"></asp:TextBox>
        <br />
        <asp:CheckBox ID="chkNewForm" runat="server" Checked="True" Text="需进一步处理的理由：" />
        <asp:TextBox ID="txtMemo" runat="server"></asp:TextBox>
        <br />
        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
    <br />
    <asp:Button ID="btnFinish" runat="server" Text="完成" onclick="btnFinish_Click" />
    
    </asp:Panel>
</asp:Content>
